import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import dataV from '@jiaminghi/data-view';

// 引入全局css
import './assets/scss/style.scss';
// 按需引入vue-awesome图标
import Icon from 'vue-awesome/components/Icon';
import 'vue-awesome/icons/chart-bar.js';
import 'vue-awesome/icons/chart-area.js';
import 'vue-awesome/icons/chart-pie.js';
import 'vue-awesome/icons/chart-line.js';
import 'vue-awesome/icons/align-left.js';
import 'element-ui/lib/theme-chalk/index.css';
import ElementUI from 'element-ui';
//引入echart
//4.x 引用方式
import echarts from 'echarts';
import a from 'echarts-wordcloud';
import TitleHead from "@/views/components/title.vue"
import Title2 from "@/views/components/title2.vue"
import TitleCard from "@/views/components/titleCard.vue"
import RadioText from "@/views/components/radioText.vue"
import RadioText2 from "@/views/components/radioText2.vue"
import Text1 from "@/views/components/text1.vue"
import Text2 from "@/views/components/text2.vue"
import Text3 from "@/views/components/text3.vue"
import timeAndDate from "@/views/components/time.vue"
import onlyLine from "@/components/echart/line"
import pie3D from "@/components/echart/3dpie"
import tableChart from "@/components/echart/table"
import lineAndBar from "@/components/echart/lineAndBar"
import menuHead from "@/components/menuHead/index"
import menuHead2 from "@/components/menuHead/index2"
import numberCard from "@/components/echart/numberCard"
import screenInfo from "@/views/big-screen/screenInfo.vue"
import {getList} from "@/api/index"
//5.x 引用方式为按需引用
//希望使用5.x版本的话,需要在package.json中更新版本号,并切换引用方式
//import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false;
Vue.prototype.getInfo=getList;
Vue.use(ElementUI)
Vue.component("titleHead",TitleHead)
Vue.component("Title2",Title2)
Vue.component("titleCard",TitleCard)
Vue.component("radioText",RadioText)
Vue.component("radioText2",RadioText2)
Vue.component("text1",Text1)
Vue.component("text2",Text2)
Vue.component("text3",Text3)
Vue.component("pie3D",pie3D)
Vue.component("onlyLine",onlyLine)
Vue.component("timeAndDate",timeAndDate)

Vue.component("screenInfo",screenInfo)
Vue.component("menuHead",menuHead)
Vue.component("menuHead2",menuHead2)
Vue.component("lineAndBar",lineAndBar)
Vue.component("tableChart",tableChart)
Vue.component("numberCard",numberCard)
// 全局注册
Vue.component('icon', Icon);
Vue.use(dataV);

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app');
